﻿using Design.Common.Attri;
using Design.Common.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Design.Common
{
    [DesignAttribute(nameof(DesignAttributeDemo), Model.DesignType.None,00)]
    public class DesignAttributeDemo : IDesignDemo
    {
        public DesignAttribute GetDesignAttribute() => typeof(DesignAttributeDemo).GetCustomAttribute<DesignAttribute>();
        public void RunExample(bool isRun)
        {
            if (!isRun) return;
            Console.WriteLine($"测试用例{nameof(DesignAttributeDemo)}");
        }
    }
}
